package com.lc.cehui.util;


/**
 * Describe Html 工具
 * zsq on 2018/9/4.
 */
public class HtmlUtils {

    public static final String head = "<!DOCTYPE html>\n" +
            "\n" +
            "<html>\n" +
            "\n" +
            "\t<head>\n" +
            "\t\t<meta charset=\"utf-8\">\n" +
            "\t\t \n" +
            "\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0\">\n" +
            "\t</head>\n" +
            "\n" +
            "\t<body><style>\n" +
            "\timg{\n" +
            "\t\t\n" +
            "\t\tmax-width: 100% !important;\n" +
            "\t}\n" +
            "</style>";
    public static final String bottom = "\t</body>\n" +
            "\n" +
            "</html>";


    /**
     * 处理html 完整信息
     *
     * @param html
     * @return
     */
    public static String setHtml(String html) {
        return head + html + bottom;
    }
}